import { request } from "../server";


// 获取精选专区所有分类
export const getTagList = () => {
  // http://mobilecdnbj.kugou.com/api/v3/tag/list?pid=0&apiver=2&plat=0
  return request({
    // baseURL: 'http://mobilecdnbj.kugou.com/'
    url: 'api/v3/tag/list?pid=0&apiver=2&plat=0',
    method: 'get'
  })
}

// 获取热门推荐分类
export const getHotList = () => {
  return request({
    url: 'api/v3/tag/recommend?showtype=3&apiver=2&plat=0',
    method: 'get'
  })
}

/**
 * 以上为测试用接口
 * ⬇⬇
 * 为正式接口
 */

// 音乐新歌榜单 api/new_songs
export const getNewSongs = () => {
  return request({
    url: 'api/new_songs',
    method: 'post'
  })
}

// 音乐歌单 api/plist/
export const getMusicList = () => {
  return request({
    url: 'api/plist/',
    method: 'post'
  })
}

